/*
 * --------------------------------------------------------------
 * Copyright ©  2015 Hangzhou DtDream Technologies Co.,Ltd.
 * --------------------------------------------------------------
 *      Product: 协同数治
 *  Module Name: design
 * Date Created: 2023/2/22
 *  Description: TODO
 * --------------------------------------------------------------
 * Modification History
 * DATE            NAME            Description
 * --------------------------------------------------------------
 * 2023/2/22       yewj            TODO
 * --------------------------------------------------------------
 */

package com.dtdream.pattern.proxy.dynamicproxy;

/**
 * TODO
 *
 * @Author: yewj
 **/
public class Client {
    public static void main(String[] args) {
        ITeacherDao target = new TeacherDao();

        ITeacherDao proxy = (ITeacherDao) new ProxyFactory(target).getProxyInstance();

        proxy.sayHello();
        proxy.teach();
    }
}
